-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CobraDocs: Remove commit hash from docs. Fix issue with workdir replacement #17392
CobraDocs: Remove commit hash from docs. Fix issue with workdir replacement #17392
Conversation
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17392 +/- ##
==========================================
+ Coverage 67.47% 67.53% +0.05%
==========================================
Files 1581 1581
Lines 253944 253956 +12
==========================================
+ Hits 171353 171503 +150
+ Misses 82591 82453 -138 ☔ View full report in Codecov by Sentry. |
|
||
// We're replacing the stuff inside the square brackets in the example sed | ||
// below: | ||
// 's:Paths to search for config files in. (default \[.*\])$:Paths to search for config files in. (default \[<WORKDIR>\]):' | ||
sed := exec.Command("sed", "-i", "-e", fmt.Sprintf("s:%s:<WORKDIR>:i", wd), file) | ||
sed := exec.Command("sed", "-i", "", "-e", fmt.Sprintf("s:%s:%s:", wd, "<WORKDIR>"), file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this has always been failing because the sed
command was incorrect. Without this change the -e
is seen as the value for -i
and the sed
fails.
…cement (vitessio#17392) Signed-off-by: Rohit Nayak <rohit@planetscale.com>
…cement (vitessio#17392) Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Description
sed
command to replace<WORKDIR>
due to incorrect sed invocation. Fixed here.WORKDIR
sed was not happening: fixedRelated Issue(s)
There is a related website PR vitessio/website#1904 which will enhance the current
make
target to generate the docs to add modified content files to git with an appropriate git message including the current vitess hash.We need to first merge this PR into main and then run
make generated-docs
in the website PR before it is ready.Checklist
Deployment Notes